package com.yjx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yjx.pojo.Part;
import com.yjx.util.Result;

import java.util.Map;

public interface PartsService extends IService<Part> {
    Map<String, Object> getPartsMap(Integer userId,
                             String searchKeyword,
                             Integer pageNum,
                             Integer pageSize,
                             String sortField,
                             String sortOrder);

    Result<String> addPart(Part parts);

    Result<String> updatePart(Part parts);

    int deletePartsByPartId(Integer partId);
}
